{include file="public/header" /}
<body>
<div class="layui-tab-brief main-tab-container">
    <ul class="layui-tab-title main-tab-title">
        <a href="#">基本设置</li></a>
        <a href="{:url('Sys/logo')}"><li class="layui-this">LOGO设置</li></a>
        <div class="main-tab-item">站点设置</div>

    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <form class="layui-form" enctype="multipart/form-data" name="web_site" method="post" onsubmit="return false">
                <div class="layui-tab layui-tab-card">
                    <ul class="layui-tab-title">
                        <li class="layui-this">LOGO设置</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                            <!--<div class="layui-form-item">-->
                                <!--<label class="layui-form-label">Logo</label>-->
                                <!--<div class="layui-input-inline input-custom-width">-->
                                    <!--<div class="layui-box layui-upload-button">-->
                                            <!--<input type="file" name="images " lay-title="图片" class="layui-upload-file">-->
                                        <!--<span class="layui-upload-icon"><i class="layui-icon"></i>图片</span>-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                            {volist name="logo" id="vo"}
                            <div class="layui-form-item">
                                <label class="layui-form-label">文字1</label>
                                <div class="layui-input-inline input-custom-width">
                                    <input type="text" name="wenzi1" value="{$vo.wenzi1}" lay-verify="required" autocomplete="off" placeholder="LOGO右侧第一行文字" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">文字2</label>
                                <div class="layui-input-inline input-custom-width">
                                    <input type="text" name="wenzi2" value="{$vo.wenzi2}" lay-verify="required" autocomplete="off" placeholder="LOGO右侧第二行文字" class="layui-input">
                                </div>
                            </div>
                            {/volist}
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <button class="layui-btn" lay-submit="" lay-filter="web_set" type="button" id="web_site">立即修改</button>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        //按钮单击时执行
        $("#web_site").click(function(){
            $.ajax({
                url: "{:url('sys/logo')}",
                data: $("form").serialize(),
                type: "POST",
                datatype:"json",
                success: function( result ) {
                    layer.open({
                        title: '信息'
                        ,content: '修改成功！'
                    });
                }
            });
        });
    });
</script>
<script type="text/javascript">
    layui.use(['element', 'form'], function(){
        var element = layui.element()
            ,form = layui.form()
            ,jq = layui.jquery;
    })
</script>
</body>
</html>

